Securing Azure Networks: Creating and Configuring Network Security Groups (NSGs) and Application Security Groups (ASGs)
This article is a continuation of Building Strong Connections: A Beginner’s Guide to Setting Up Virtual Networks and Peering in Azure. In that guide, we set up a virtual network (app-vnet) with two subnets: frontend and backend.
In this article, we’ll focus on securing those subnets by implementing network security groups (NSGs) and application security groups (ASGs) to control inbound and outbound traffic between VMs and from the internet.
We will deploy two Ubuntu virtual machines using an Azure Resource Manager (ARM) template provided by Microsoft. VM1 will reside in the frontend subnet, and VM2 will be placed in the backend subnet.
Open Azure Cloud Shell (select PowerShell) and run the following command:
$RGName = "RG1"
New-AzResourceGroupDeployment -ResourceGroupName $RGName -T…
( 4
min )